package rsee.com;

public class SourceIdent {
	private String mRecordName = null;
	
	public boolean isNet() {
		boolean result = (this instanceof SourceIdentNet);
		return result;
	}
	
	public String getTitle() {
		// for inherit
		return mRecordName;
	}
	
	public void setRecordName(String recordName) {
		mRecordName = new String(recordName);
	}
	
	public String getRecordName() {
		return mRecordName;
	}
	
	protected void copy(SourceIdent ident) {
		if (null != ident.mRecordName)
			mRecordName = new String(ident.mRecordName);
		else
			mRecordName = null;
	}
	
	public static SourceIdent createSourceIdent(String record, byte chanIndex) {
	    if (null == record || 0 == record.length())
            return null;
        
        return new SourceIdentNet(record, chanIndex);
	}
	
	public static SourceIdent createSourceIdent(String filePath) {
		return null;
	}
	
    public static SourceIdentNet createSourceIdent(SourceIdentNet obj, byte chanIndex) {
        SourceIdentNet ident = new SourceIdentNet();
        ident.copy(obj);
        ident.setChanIndex(chanIndex);

        return ident;
    }

    public boolean isSameIdent(Object ident) {
        // for inherit
        return false;
    }
    
  	public int getVersion()
	{
  	// for inherit
		return 0;
	}
  	
	public void setVersion(int ver)
	{

	}
	
  	public byte getChanIndex()
  	{
  	 // for inherit
  		return 0;
  	}
  	
	public void setChannelGroupIndex(byte[] channelGroupIdex)
	{
		
	}
	
	public byte[] getChannelGroupIdex()
	{
		return null;
	}
}
